/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package snail.data;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author Mickel
 */
public interface IGenericDAO<T, ID extends Serializable> {

    public static final String QUERY_DELETE = "category.delete";


    T getById(ID id);
    List<T> getAll();
    List<T> getByExample(T exampleInstance, String[] excludeProperty);
    T makePersistent(T entity);
    void makeTransient(T entity);
}
